HAL FDCAN state and error functions migration

This section provides information about the HAL FDCAN state and error functions migration.

HAL FDCAN state.

HAL1

HAL2

HAL_FDCAN_GetState(const FDCAN_HandleTypeDef *hfdcan)
HAL_FDCAN_GetState(const hal_fdcan_handle_t *hfdcan)

Related concept: Revised and optimized HAL state machine


HAL FDCAN get error code.

HAL1

HAL2

HAL_FDCAN_GetError()
HAL_FDCAN_GetLastErrorCodes()